class Student:
    school = 'aaa'

    def __init__(self, xm, age):
        self.name = xm
        self.age = age

    def show(self):
        print(f'my name is {self.name},age is {self.age}')

    @staticmethod
    def sm():
        print('这是一个静态方法，不能调用实力属性，也不能调用实例方法')

    @classmethod
    def cm(cls):
        print("这是一个类方法，不能调用实力属性，也不能调用实例方法")

stu = Student('chl', 19)
print(stu.name)
print(stu.age)

print(Student.school)
stu.show()

Student.cm()

Student.sm()